package avicit.im.lantop.basic.fieldmapset.domain;

import avicit.platform6.core.annotation.log.FieldRemark;
import avicit.platform6.core.annotation.log.LogField;
import avicit.platform6.core.domain.BeanBase;
import avicit.platform6.core.properties.PlatformConstant.LogType;

import javax.persistence.*;

/**
 * bean LantopFieldRelateSet Title: 表LANTOP_FIELD_RELATE_SET的PoJo类，也就是数据库映射类
 * Description: 字段对应设置信息 Copyriht: Copyright (c) 2012 Company: AVICIT Co., Ltd
 * 
 * @author AVICIT DEV
 * @version 1.0 Date: 2014-10-21 15:35
 * 
 */
@Entity
@Table(name = "LANTOP_FIELD_RELATE_SET")
public class LantopFieldRelateSet extends BeanBase {

	private static final long serialVersionUID = 1L;
	@LogField
	@FieldRemark(column = "ID", field = "id", name = "字段对应设置ID")
	private String id; // ID
	private String orgId; // 组织ID
	private String deptId; // 部门ID
	private String sysId; // 系统标识ID
	@LogField
	@FieldRemark(column = "SOURCE_TABLE_ID", field = "sourceTableId", name = "源表ID")
	private String sourceTableId; // 源表ID
	@LogField
	@FieldRemark(column = "SOURCE_TABLE_NAME", field = "sourceTableName", name = "源表英文名称")
	private String sourceTableName; // 源表英文名称
	@LogField
	@FieldRemark(column = "SOURCE_TABLE_TITLE", field = "sourceTableTitle", name = "源表中文名称")
	private String sourceTableTitle; // 源表中文名称
	@LogField
	@FieldRemark(column = "TGT_TABLE_ID", field = "tgtTableId", name = "目标表ID")
	private String tgtTableId; // 目标表ID
	@LogField
	@FieldRemark(column = "TGT_TABLE_NAME", field = "tgtTableName", name = "目标表英文名称")
	private String tgtTableName; // 目标表英文名称
	@LogField
	@FieldRemark(column = "TGT_TABLE_TITLE", field = "tgtTableTitle", name = "目标表中文名称")
	private String tgtTableTitle; // 目标表中文名称
	@LogField
	@FieldRemark(column = "TGT_ARCHIVE_CLASS_ID", field = "tgtArchiveClassId", name = "目标节点")
	private String tgtArchiveClassId; // 目标节点
	private String secretLevel; // 密级
	private String sysApplicationId; // 多应用ID
	private String attribute01; // 预留字段1
	private String attribute02; // 预留字段2
	private String attribute03; // 预留字段3
	private String attribute04; // 预留字段4
	private String attribute05; // 预留字段5
	private String attribute06; // 预留字段6
	private String attribute07; // 预留字段7
	private String attribute08; // 预留字段8
	private java.util.Date attribute09; // 预留字段9
	private java.util.Date attribute10; // 预留字段10
	private java.math.BigDecimal attribute11; // 预留字段11
	private java.math.BigDecimal attribute12; // 预留字段12
	private java.math.BigDecimal attribute13; // 预留字段13
	private java.math.BigDecimal attribute14; // 预留字段14
	private java.math.BigDecimal attribute15; // 预留字段15
	@LogField
	@FieldRemark(column = "SIGN_WHERE_SQL", field = "signWhereSql", name = "单表过滤条件")
	private String signWhereSql; // 单表过滤条件
	@LogField
	@FieldRemark(column = "BATCH_WHERE_SQL", field = "batchWhereSql", name = "批量过滤条件")
	private String batchWhereSql; // 批量过滤条件
	@LogField
	@FieldRemark(column = "WHERE_SQL_CN", field = "whereSqlCn", name = "过滤条件中文")
	private String whereSqlCn; // 过滤条件中文

	@Id
	@Column(name = "ID", length = 50, nullable = false)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "ORG_ID", length = 50, nullable = false)
	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	@Column(name = "DEPT_ID", length = 50, nullable = false)
	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	@Column(name = "SYS_ID", length = 50)
	public String getSysId() {
		return sysId;
	}

	public void setSysId(String sysId) {
		this.sysId = sysId;
	}

	@Column(name = "SOURCE_TABLE_ID", length = 50, nullable = false)
	public String getSourceTableId() {
		return sourceTableId;
	}

	public void setSourceTableId(String sourceTableId) {
		this.sourceTableId = sourceTableId;
	}

	@Column(name = "SOURCE_TABLE_NAME", length = 100, nullable = false)
	public String getSourceTableName() {
		return sourceTableName;
	}

	public void setSourceTableName(String sourceTableName) {
		this.sourceTableName = sourceTableName;
	}

	@Column(name = "SOURCE_TABLE_TITLE", length = 200, nullable = false)
	public String getSourceTableTitle() {
		return sourceTableTitle;
	}

	public void setSourceTableTitle(String sourceTableTitle) {
		this.sourceTableTitle = sourceTableTitle;
	}

	@Column(name = "TGT_TABLE_ID", length = 50, nullable = false)
	public String getTgtTableId() {
		return tgtTableId;
	}

	public void setTgtTableId(String tgtTableId) {
		this.tgtTableId = tgtTableId;
	}

	@Column(name = "TGT_TABLE_NAME", length = 100, nullable = false)
	public String getTgtTableName() {
		return tgtTableName;
	}

	public void setTgtTableName(String tgtTableName) {
		this.tgtTableName = tgtTableName;
	}

	@Column(name = "TGT_TABLE_TITLE", length = 200, nullable = false)
	public String getTgtTableTitle() {
		return tgtTableTitle;
	}

	public void setTgtTableTitle(String tgtTableTitle) {
		this.tgtTableTitle = tgtTableTitle;
	}

	@Column(name = "TGT_ARCHIVE_CLASS_ID", length = 50)
	public String getTgtArchiveClassId() {
		return tgtArchiveClassId;
	}

	public void setTgtArchiveClassId(String tgtArchiveClassId) {
		this.tgtArchiveClassId = tgtArchiveClassId;
	}

	@Column(name = "SECRET_LEVEL", length = 50)
	public String getSecretLevel() {
		return secretLevel;
	}

	public void setSecretLevel(String secretLevel) {
		this.secretLevel = secretLevel;
	}

	@Column(name = "SYS_APPLICATION_ID", length = 50)
	public String getSysApplicationId() {
		return sysApplicationId;
	}

	public void setSysApplicationId(String sysApplicationId) {
		this.sysApplicationId = sysApplicationId;
	}

	@Column(name = "ATTRIBUTE_01", length = 255)
	public String getAttribute01() {
		return attribute01;
	}

	public void setAttribute01(String attribute01) {
		this.attribute01 = attribute01;
	}

	@Column(name = "ATTRIBUTE_02", length = 255)
	public String getAttribute02() {
		return attribute02;
	}

	public void setAttribute02(String attribute02) {
		this.attribute02 = attribute02;
	}

	@Column(name = "ATTRIBUTE_03", length = 255)
	public String getAttribute03() {
		return attribute03;
	}

	public void setAttribute03(String attribute03) {
		this.attribute03 = attribute03;
	}

	@Column(name = "ATTRIBUTE_04", length = 255)
	public String getAttribute04() {
		return attribute04;
	}

	public void setAttribute04(String attribute04) {
		this.attribute04 = attribute04;
	}

	@Column(name = "ATTRIBUTE_05", length = 255)
	public String getAttribute05() {
		return attribute05;
	}

	public void setAttribute05(String attribute05) {
		this.attribute05 = attribute05;
	}

	@Column(name = "ATTRIBUTE_06", length = 255)
	public String getAttribute06() {
		return attribute06;
	}

	public void setAttribute06(String attribute06) {
		this.attribute06 = attribute06;
	}

	@Column(name = "ATTRIBUTE_07", length = 255)
	public String getAttribute07() {
		return attribute07;
	}

	public void setAttribute07(String attribute07) {
		this.attribute07 = attribute07;
	}

	@Column(name = "ATTRIBUTE_08", length = 255)
	public String getAttribute08() {
		return attribute08;
	}

	public void setAttribute08(String attribute08) {
		this.attribute08 = attribute08;
	}

	@Column(name = "ATTRIBUTE_09")
	public java.util.Date getAttribute09() {
		return attribute09;
	}

	public void setAttribute09(java.util.Date attribute09) {
		this.attribute09 = attribute09;
	}

	@Column(name = "ATTRIBUTE_10")
	public java.util.Date getAttribute10() {
		return attribute10;
	}

	public void setAttribute10(java.util.Date attribute10) {
		this.attribute10 = attribute10;
	}

	@Column(name = "ATTRIBUTE_11")
	public java.math.BigDecimal getAttribute11() {
		return attribute11;
	}

	public void setAttribute11(java.math.BigDecimal attribute11) {
		this.attribute11 = attribute11;
	}

	@Column(name = "ATTRIBUTE_12")
	public java.math.BigDecimal getAttribute12() {
		return attribute12;
	}

	public void setAttribute12(java.math.BigDecimal attribute12) {
		this.attribute12 = attribute12;
	}

	@Column(name = "ATTRIBUTE_13")
	public java.math.BigDecimal getAttribute13() {
		return attribute13;
	}

	public void setAttribute13(java.math.BigDecimal attribute13) {
		this.attribute13 = attribute13;
	}

	@Column(name = "ATTRIBUTE_14")
	public java.math.BigDecimal getAttribute14() {
		return attribute14;
	}

	public void setAttribute14(java.math.BigDecimal attribute14) {
		this.attribute14 = attribute14;
	}

	@Column(name = "ATTRIBUTE_15")
	public java.math.BigDecimal getAttribute15() {
		return attribute15;
	}

	public void setAttribute15(java.math.BigDecimal attribute15) {
		this.attribute15 = attribute15;
	}

	@Column(name = "SIGN_WHERE_SQL", length = 4000)
	public String getSignWhereSql() {
		return signWhereSql;
	}

	public void setSignWhereSql(String signWhereSql) {
		this.signWhereSql = signWhereSql;
	}

	@Column(name = "BATCH_WHERE_SQL", length = 4000)
	public String getBatchWhereSql() {
		return batchWhereSql;
	}

	public void setBatchWhereSql(String batchWhereSql) {
		this.batchWhereSql = batchWhereSql;
	}

	@Column(name = "WHERE_SQL_CN", length = 4000)
	public String getWhereSqlCn() {
		return whereSqlCn;
	}

	public void setWhereSqlCn(String whereSqlCn) {
		this.whereSqlCn = whereSqlCn;
	}

	/**
	 * TODO 获取日志表单名称
	 * @return 
	 * @throws
	 */
	@Override
    @Transient
	public String getLogFormName() {
		if (super.logFormName == null || super.logFormName.equals("")) {
			return "字段对应设置模块";
		} else {
			return super.logFormName;
		}
	}

	/**
	 * TODO 获取日志标题
	 * @return 
	 * @throws
	 */
	@Override
    @Transient
	public String getLogTitle() {
		if (super.logTitle == null || super.logTitle.equals("")) {
			return "字段对应设置模块";
		} else {
			return super.logTitle;
		}
	}

	/**
	 * TODO 获取日志类型
	 * @return 
	 * @throws
	 */
	@Override
    @Transient
	public LogType getLogType() {
		if (super.logType == null || super.logType.equals("")) {
			return LogType.module_operate;
		} else {
			return super.logType;
		}
	}

}
